package com.transformer.shobal.java;

/**
 * Created by tiny on 2015/1/25.
 */
public class MyInfo {
    public String myName;
    public String myId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MyInfo myInfo = (MyInfo) o;

        if (!myId.equals(myInfo.myId)) return false;
        if (!myName.equals(myInfo.myName)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = myName.hashCode();
        result = 31 * result + myId.hashCode();
        return result;
    }

    @Override
    public String toString() {
        return "MyInfo{" +
                "myName='" + myName + '\'' +
                ", myId='" + myId + '\'' +
                '}';
    }
}
